from pydantic import BaseModel
from typing import List, Any


class ResultGroupOut(BaseModel):
    id: int
    title: str

class ResultItemOut(BaseModel):
    id: int
    oss_url: str
    detection_info: Any
    created_at: str

class ResultGroupDetailOut(BaseModel):
    id: int
    title: str
    items: List[ResultItemOut]

class DetectionItemCreate(BaseModel):
    image_base64: str
    detection_info: Any

class DetectionGroupCreate(BaseModel):
    user_id: int
    title: str
    items: List[DetectionItemCreate] 